<?php
/**
 * This file is part of Notadd.
 *
 * @author        Hollydan <2642956839@qq.com>
 * @copyright (c) 2017, notadd.com
 * @datetime      17-11-20 下午5:26
 */

namespace Notadd\Seckill\Models;


use Illuminate\Database\Eloquent\Model;

class Seckill extends Model
{
    protected $table = 'ext_seckill_seckills';
    protected $fillable = [
        'name',
        'date',
        'time_block_id',
        'useful',
        'spus',
    ];

    /**
     * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
     */
    public function products()
    {
        return $this->belongsToMany(Product::class);
    }

}